<?php

    class exceptionHelper extends EngineSupervisor
    {
        private $code;
        public function __construct($e)
        {
            echo $e->getMessage();
            exit;
            
              $this -> code = $e -> getCode();
              if($this -> code == 1)
              {
                $this -> on404();
              }
        }

        public function on404()
        {
            $this -> FriendlyLink(SITE_ADDRESS.'404.html');
        }
    }

?>

